package com.qf.fmall.controller;

import com.qf.fmall.service.UserAddrService;
import com.qf.fmall.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 王权富贵
 */
@RestController
@RequestMapping(value = "/useraddr")
public class UserAddrController {
    @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
    @Autowired
    private UserAddrService userAddrService;

    @RequestMapping(value = "/list")
    @CrossOrigin
    public ResultVo list(Integer userid) {
        ResultVo resultVo = userAddrService.list(userid);
        return resultVo;
    }
}
